package com.dq.Mapper;

import com.dq.Pojo.Sharecourse;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ShareMapper {

    void add(Sharecourse sharecourse);

    Sharecourse findById(@Param("lid") Integer classid, @Param("cid") Integer courseid);
    List<Sharecourse> findAll(@Param("courseId") String courseid,
                              @Param("classId") String classid,
                              @Param("teaId") String teaid);

    @Delete("delete from sharecourse where id=#{id}")
    void delete(Integer id);

    List<Sharecourse> findBystuid(Integer id);

    List<Sharecourse> findByteaid(Integer id);
}
